inspector: Avoid a crash with GL variants
authorMatthias Clasen <mclasen@redhat.com>
Tue, 11 May 2021 01:25:08 +0000 (21:25 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 11 May 2021 01:25:08 +0000 (21:25 -0400)
commitea162ed01612e42766717667f78f5a981a496c3c
tree048ddce26526ec13be63982b35f8c7d96a5519e4
parente2aa161590cd8a5dd326b5510a1669fc879b7fa5
inspector: Avoid a crash with GL variants

When configuring the inspector display, preserve
debug flags that affect which GL variant we pick.
Otherwise, we may end up with a GLX context on the
default display, and an EGL context on the inspector
one. This hopelessly confuses libepoxy, and things
don't go well when that happens.
gtk/inspector/window.c